<div ng-include src="'tpl/public/header.html?1'"></div>
<div class="contents">
  <ol class="breadcrumb">
    <li> <a href="#/index/panel">首页</a> </li>
    <li class="active">{{addOrEdit}}短信后缀
    </li>
  </ol>
  <form class="form-horizontal" role="form" name="form" novalidate ng-submit="save()">
    <div class="form-group" ng-class="{'has-error':form.module.$invalid}">
      <label class="col-sm-2 control-label">模块</label>
      <div class="col-sm-5">
        <select class="form-control" name="module" ng-model="message.module" ng-options="m.value as m.text for m in dictMap.messageModuleModel" required="required"></select>
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.title.$invalid}">
      <label class="col-sm-2 control-label">标题</label>
      <div class="col-sm-5">
        <select class="form-control" name="title" ng-model="message.title" ng-options="m.value as m.text for m in dictMap.messageTitleModel" required="required"></select>
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.content.$invalid}">
      <label class="col-sm-2 control-label">新增文字</label>
      <div class="col-sm-5">
        <textarea class="form-control" name="content" ng-model="message.content" required="required"></textarea>
      </div>
    </div>

    <div class="form-group" >
      <label class="col-sm-2 control-label">&nbsp;</label>
      <div class="col-sm-5">
        <input type="submit" class="btn btn-primary" value="保存" has-auth where="btn" />
      </div>
    </div>
  </form>
</div>